
public class Jabberwock {
	String color;
	String sex;
	boolean hungry;
	
	
	void FeedJabberwock(){
		if (hungry==true){
			System.out.println("Yum - a peasant");
			hungry=false;
		} else
				System.out.println("NO, thanks - already ate");
		}
	
	void showAttributes(){
		System.out.println("This is a " + this.sex + " " + color + " Jabberwock");
		if (this.hungry==true)
			System.out.println("The monster is hungry");		
			else
				System.out.println("The monster is fed");
		
	}
	
	public static void main(String[] arguments){
		Jabberwock j = new Jabberwock();
		j.color="orange";
		j.sex="male";
		j.hungry=true;
		j.showAttributes();
		System.out.println("--------");
		j.FeedJabberwock();
		System.out.println("--------");
		j.showAttributes();
	}
	
	}
